module Base
{
	model ECTO1WindshieldArmor1
    	{
        mesh = vehicles/Vehicles_ECTO1_Body|ECTO1_windshield_a,
        shader = damn_vehicle_noreflect_shader,
        scale = 0.1,
    	}

    model ECTO1doorfla
	{
		mesh = vehicles/Vehicles_ECTO1_Body|ECTO1_door_fl_a,
		shader = damn_vehicle_noreflect_shader,
		static = FALSE,
		scale = 0.1,
	}

	model ECTO1doorfra
	{
		mesh = vehicles/Vehicles_ECTO1_Body|ECTO1_door_fr_a,
		shader = damn_vehicle_noreflect_shader,
		static = FALSE,
		scale = 0.1,
	}

	model ECTO1doorrla
	{
		mesh = vehicles/Vehicles_ECTO1_Body|ECTO1_door_rl_a,
		shader = damn_vehicle_noreflect_shader,
		static = FALSE,
		scale = 0.1,
	}

	model ECTO1doorrra
	{
		mesh = vehicles/Vehicles_ECTO1_Body|ECTO1_door_rr_a,
		shader = damn_vehicle_noreflect_shader,
		static = FALSE,
		scale = 0.1,
	}

    model ECTO1doorrr2a
	{
		mesh = vehicles/Vehicles_ECTO1_Body|ECTO1_door_rr2_a,
		shader = damn_vehicle_noreflect_shader,
		static = FALSE,
		scale = 0.1,
	}

    model ECTO1WindshieldRearArmor1
    	{
        mesh = vehicles/Vehicles_ECTO1_Body|ECTO1_trunk_a,
		shader = damn_vehicle_noreflect_shader,
		static = FALSE,
        scale = 0.1,
    	}

	template vehicle ECTO1Armor
	{
		part DAMNWindshieldArmor
        {

			model WindshieldArmor1
				{
                		file = ECTO1WindshieldArmor1,
				}

			area = Engine,
			category = bodywork,
			specificItem = false,
			itemType = Base.ECTO1WindshieldArmor,
			mechanicRequireKey = false,
            durability = 5,
			table install
					{
						
					}

			table install
			{
                	items
                	{
                    	1
                    		{
                        	tags = Screwdriver,
                        	count = 1,
                        	keep = true,
				            equip = primary,
                    		}
                	}

                	time = 1100,
                	skills = Mechanics:4,
                	recipes = Intermediate Mechanics,
                	test = Vehicles.InstallTest.Default,
                	complete = ECTO1.InstallComplete.WindshieldArmor,
                    requireInstalled = Windshield,
            		}

            		table uninstall
            		{
                	items
                	{
                    	1
                    		{
                            tags = Screwdriver,
                            count = 1,
                            keep = true,
                            equip = primary,
                    		}
                	}

                    time = 1100,
                    skills = Mechanics:4,
                    recipes = Intermediate Mechanics,
                	test = Vehicles.UninstallTest.Default,
			        complete = ECTO1.UninstallComplete.WindshieldArmor,
            		}

            		lua
            		{
                    create = ECTO1.Create.WindshieldArmor,
                    init = ECTO1.Init.WindshieldArmor,
                    }
		}

        part DAMNFrontLeftArmor
		{
			model DoorFrontLeftArmor1
				{
				file = ECTO1doorfla,
				}
				parent = DoorFrontLeft,
				itemType = Base.ECTO1CarFrontDoorArmor,
				specificItem = false,
                durability = 5,
				table install
				{
				requireInstalled = WindowFrontLeft,
				}
				area = SeatFrontLeft,
				
				lua
				{
					create = ECTO1.Create.DoorFrontLeftArmor,
					init = ECTO1.Init.DoorFrontLeftArmor,
				}
		}

		part DAMNFrontRightArmor
		{
			model DoorFrontRightArmor1
				{
				file = ECTO1doorfra,
				}
				parent = DoorFrontRight,
				itemType = Base.ECTO1CarFrontDoorArmor,
				specificItem = false,
                durability = 5,
				table install
				{
				requireInstalled = WindowFrontRight,
				}
				area = SeatFrontRight,
				
				lua
				{
					create = ECTO1.Create.DoorFrontRightArmor,
					init = ECTO1.Init.DoorFrontRightArmor,
				}
		}

		part DAMNRearLeftArmor
		{
			model DoorRearLeftArmor1
				{
				file = ECTO1doorrla,
				}
				parent = DoorRearLeft,
				itemType = Base.ECTO1CarRearDoorArmor,
				specificItem = false,
                durability = 5,
				table install
				{
				requireInstalled = WindowRearLeft,
				}
				area = SeatRearLeft,
				
				lua
				{
					create = ECTO1.Create.DoorRearLeftArmor,
					init = ECTO1.Init.DoorRearLeftArmor,
				}
		}

		part DAMNRearRightArmor
		{
			model DoorRearRightArmor1
				{
				file = ECTO1doorrra,
				}
				parent = DoorRearRight,
				itemType = Base.ECTO1CarRearDoorArmor,
				specificItem = false,
                durability = 5,
				table install
				{
				requireInstalled = WindowRearRight,
				}
				area = SeatRearRight,
				
				lua
				{
					create = ECTO1.Create.DoorRearRightArmor,
					init = ECTO1.Init.DoorRearRightArmor,
				}
		}

		part DAMNFront*
		{
			category = bodywork,
			door
			{
				}
				anim Open
				{
					sound = VehicleDoorOpenStandard,
				}
				anim Close
				{
					sound = VehicleDoorCloseStandard,
				}
				anim Lock
				{
					sound = LockVehicleDoorStandard,
				}
				anim Unlock
				{
					sound = UnlockVehicleDoorStandard,
				}
				anim IsLocked
				{
					sound = VehicleDoorIsLockedStandard,
				}
				anim ActorOpen
				{
					anim = Attack_Shove,
					rate = 0.3,
				}
				anim ActorClose
				{
					anim = Attack_Shove,
					rate = 0.3,
				}
				mechanicRequireKey = true,
				table install
				{
					items
					{
						item
						{
							tags = Wrench,
							count = 1,
							keep = true,
							equip = primary,
						}
					}
					time = 1200,
					skills = Mechanics:4,
					recipes = Intermediate Mechanics,
					test = Vehicles.InstallTest.Default,
					complete = Vehicles.InstallComplete.Door,
				}
				table uninstall
				{
					items
					{
						item
						{
							tags = Wrench,
							count = 1,
							keep = true,
							equip = primary,
						}
					}
					time = 1200,
					skills = Mechanics:4,
					recipes = Intermediate Mechanics,
					test = Vehicles.UninstallTest.Default,
					complete = Vehicles.UninstallComplete.Door,
				}
			}

            part DAMNRear*
		{
			category = bodywork,
			door
			{
				}
				anim Open
				{
					sound = VehicleDoorOpenStandard,
				}
				anim Close
				{
					sound = VehicleDoorCloseStandard,
				}
				anim Lock
				{
					sound = LockVehicleDoorStandard,
				}
				anim Unlock
				{
					sound = UnlockVehicleDoorStandard,
				}
				anim IsLocked
				{
					sound = VehicleDoorIsLockedStandard,
				}
				anim ActorOpen
				{
					anim = Attack_Shove,
					rate = 0.3,
				}
				anim ActorClose
				{
					anim = Attack_Shove,
					rate = 0.3,
				}
				mechanicRequireKey = true,
				table install
				{
					items
					{
						item
						{
							tags = Wrench,
							count = 1,
							keep = true,
							equip = primary,
						}
					}
					time = 1200,
					skills = Mechanics:4,
					recipes = Intermediate Mechanics,
					test = Vehicles.InstallTest.Default,
					complete = Vehicles.InstallComplete.Door,
				}
				table uninstall
				{
					items
					{
						item
						{
							tags = Wrench,
							count = 1,
							keep = true,
							equip = primary,
						}
					}
					time = 1200,
					skills = Mechanics:4,
					recipes = Intermediate Mechanics,
					test = Vehicles.UninstallTest.Default,
					complete = Vehicles.UninstallComplete.Door,
				}
			}

        part DAMNWindshieldRearArmor
        {

			model WindshieldRearArmor1
				{
                		file = ECTO1WindshieldRearArmor1,
				}

			area = TruckBed,
			parent = TrunkDoor,
			category = bodywork,
			specificItem = false,
			itemType = Base.ECTO1WindshieldRearArmor,
			mechanicRequireKey = false,
            durability = 5,

			table install
			{
                	items
                	{
                    	1
                    		{
                        	tags = Screwdriver,
                        	count = 1,
                        	keep = true,
				            equip = primary,
                    		}
                	}

                	time = 1100,
                	skills = Mechanics:4,
                	recipes = Intermediate Mechanics,
                	test = Vehicles.InstallTest.Default,
                	complete = ECTO1.InstallComplete.WindshieldRearArmor,
                    requireInstalled = WindshieldRear,
            		}

            		table uninstall
            		{
                	items
                	{
                    	1
                    		{
                            tags = Screwdriver,
                            count = 1,
                            keep = true,
                            equip = primary,
                    		}
                	}

                    time = 1100,
                    skills = Mechanics:4,
                    recipes = Intermediate Mechanics,
                	test = Vehicles.UninstallTest.Default,
			        complete = ECTO1.UninstallComplete.WindshieldRearArmor,
            		}

            		lua
            		{
                    create = ECTO1.Create.WindshieldRearArmor,
                    init = ECTO1.Init.WindshieldRearArmor,
                    }
		    }
	}

    template vehicle ECTO1ArmorCiv
	{
		part DAMNWindshieldArmor
        {

			model WindshieldArmor1
				{
                		file = ECTO1WindshieldArmor1,
				}

			area = Engine,
			category = bodywork,
			specificItem = false,
			itemType = Base.ECTO1WindshieldArmor,
			mechanicRequireKey = false,
            durability = 5,
			table install
					{
						
					}

			table install
			{
                	items
                	{
                    	1
                    		{
                        	tags = Screwdriver,
                        	count = 1,
                        	keep = true,
				            equip = primary,
                    		}
                	}

                	time = 1100,
                	skills = Mechanics:4,
                	recipes = Intermediate Mechanics,
                	test = Vehicles.InstallTest.Default,
                	complete = ECTO1.InstallComplete.WindshieldArmor,
                    requireInstalled = Windshield,
            		}

            		table uninstall
            		{
                	items
                	{
                    	1
                    		{
                            tags = Screwdriver,
                            count = 1,
                            keep = true,
                            equip = primary,
                    		}
                	}

                    time = 1100,
                    skills = Mechanics:4,
                    recipes = Intermediate Mechanics,
                	test = Vehicles.UninstallTest.Default,
			        complete = ECTO1.UninstallComplete.WindshieldArmor,
            		}

            		lua
            		{
                    create = ECTO1.Create.WindshieldArmor,
                    init = ECTO1.Init.WindshieldArmor,
                    }
		}

        part DAMNFrontLeftArmor
		{
			model DoorFrontLeftArmor1
				{
				file = ECTO1doorfla,
				}
				parent = DoorFrontLeft,
				itemType = Base.ECTO1CarFrontDoorArmor,
				specificItem = false,
                durability = 5,
				table install
				{
				requireInstalled = WindowFrontLeft,
				}
				area = SeatFrontLeft,
				
				lua
				{
					create = ECTO1.Create.DoorFrontLeftArmor,
					init = ECTO1.Init.DoorFrontLeftArmor,
				}
		}

		part DAMNFrontRightArmor
		{
			model DoorFrontRightArmor1
				{
				file = ECTO1doorfra,
				}
				parent = DoorFrontRight,
				itemType = Base.ECTO1CarFrontDoorArmor,
				specificItem = false,
                durability = 5,
				table install
				{
				requireInstalled = WindowFrontRight,
				}
				area = SeatFrontRight,
				
				lua
				{
					create = ECTO1.Create.DoorFrontRightArmor,
					init = ECTO1.Init.DoorFrontRightArmor,
				}
		}

		part DAMNRearLeftArmor
		{
			model DoorRearLeftArmor1
				{
				file = ECTO1doorrla,
				}
				parent = DoorRearLeft,
				itemType = Base.ECTO1CarRearDoorArmor,
				specificItem = false,
                durability = 5,
				table install
				{
				requireInstalled = WindowRearLeft,
				}
				area = SeatRearLeft,
				
				lua
				{
					create = ECTO1.Create.DoorRearLeftArmor,
					init = ECTO1.Init.DoorRearLeftArmor,
				}
		}

		part DAMNRearRightArmor
		{
			model DoorRearRightArmor2
				{
				file = ECTO1doorrr2a,
				}
				parent = DoorRearRight,
				itemType = Base.ECTO1CarRearDoorArmor,
				specificItem = false,
                durability = 5,
				table install
				{
				requireInstalled = WindowRearRight,
				}
				area = SeatRearRight,
				
				lua
				{
					create = ECTO1.Create.DoorRearRightArmor,
					init = ECTO1.Init.DoorRearRightArmor,
				}
		}

		part DAMNFront*
		{
			category = bodywork,
			door
			{
				}
				anim Open
				{
					sound = VehicleDoorOpenStandard,
				}
				anim Close
				{
					sound = VehicleDoorCloseStandard,
				}
				anim Lock
				{
					sound = LockVehicleDoorStandard,
				}
				anim Unlock
				{
					sound = UnlockVehicleDoorStandard,
				}
				anim IsLocked
				{
					sound = VehicleDoorIsLockedStandard,
				}
				anim ActorOpen
				{
					anim = Attack_Shove,
					rate = 0.3,
				}
				anim ActorClose
				{
					anim = Attack_Shove,
					rate = 0.3,
				}
				mechanicRequireKey = true,
				table install
				{
					items
					{
						item
						{
							tags = Wrench,
							count = 1,
							keep = true,
							equip = primary,
						}
					}
					time = 1200,
					skills = Mechanics:4,
					recipes = Intermediate Mechanics,
					test = Vehicles.InstallTest.Default,
					complete = Vehicles.InstallComplete.Door,
				}
				table uninstall
				{
					items
					{
						item
						{
							tags = Wrench,
							count = 1,
							keep = true,
							equip = primary,
						}
					}
					time = 1200,
					skills = Mechanics:4,
					recipes = Intermediate Mechanics,
					test = Vehicles.UninstallTest.Default,
					complete = Vehicles.UninstallComplete.Door,
				}
			}

        part DAMNRear*
		{
			category = bodywork,
			door
			{
				}
				anim Open
				{
					sound = VehicleDoorOpenStandard,
				}
				anim Close
				{
					sound = VehicleDoorCloseStandard,
				}
				anim Lock
				{
					sound = LockVehicleDoorStandard,
				}
				anim Unlock
				{
					sound = UnlockVehicleDoorStandard,
				}
				anim IsLocked
				{
					sound = VehicleDoorIsLockedStandard,
				}
				anim ActorOpen
				{
					anim = Attack_Shove,
					rate = 0.3,
				}
				anim ActorClose
				{
					anim = Attack_Shove,
					rate = 0.3,
				}
				mechanicRequireKey = true,
				table install
				{
					items
					{
						item
						{
							tags = Wrench,
							count = 1,
							keep = true,
							equip = primary,
						}
					}
					time = 1200,
					skills = Mechanics:4,
					recipes = Intermediate Mechanics,
					test = Vehicles.InstallTest.Default,
					complete = Vehicles.InstallComplete.Door,
				}
				table uninstall
				{
					items
					{
						item
						{
							tags = Wrench,
							count = 1,
							keep = true,
							equip = primary,
						}
					}
					time = 1200,
					skills = Mechanics:4,
					recipes = Intermediate Mechanics,
					test = Vehicles.UninstallTest.Default,
					complete = Vehicles.UninstallComplete.Door,
				}
			}

        part DAMNWindshieldRearArmor
        {

			model WindshieldRearArmor1
				{
                		file = ECTO1WindshieldRearArmor1,
				}

			area = TruckBed,
			parent = TrunkDoor,
			category = bodywork,
			specificItem = false,
			itemType = Base.ECTO1WindshieldRearArmor,
			mechanicRequireKey = false,
            durability = 5,

			table install
			{
                	items
                	{
                    	1
                    		{
                        	tags = Screwdriver,
                        	count = 1,
                        	keep = true,
				            equip = primary,
                    		}
                	}

                	time = 1100,
                	skills = Mechanics:4,
                	recipes = Intermediate Mechanics,
                	test = Vehicles.InstallTest.Default,
                	complete = ECTO1.InstallComplete.WindshieldRearArmor,
                    requireInstalled = WindshieldRear,
            		}

            		table uninstall
            		{
                	items
                	{
                    	1
                    		{
                            tags = Screwdriver,
                            count = 1,
                            keep = true,
                            equip = primary,
                    		}
                	}

                    time = 1100,
                    skills = Mechanics:4,
                    recipes = Intermediate Mechanics,
                	test = Vehicles.UninstallTest.Default,
			        complete = ECTO1.UninstallComplete.WindshieldRearArmor,
            		}

            		lua
            		{
                    create = ECTO1.Create.WindshieldRearArmor,
                    init = ECTO1.Init.WindshieldRearArmor,
                    }
		    }
	}
}
